<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>jQuery UI Datepicker - Default functionality</title>
  <link rel="stylesheet" type="text/css" href="css/jquery-ui.css">
  <script type="text/javascript" src="js/jquery-1.10.2.js"></script>
  <script type="text/javascript" src="js/jquery-ui.js"></script>
  <link rel="stylesheet" href="/resources/demos/style.css">
  <script>
   var date = $('#datepicker').datepicker({ dateFormat: 'dd-mm-yy' }).val();
  $(function() {
    $( "#datepicker" ).datepicker();
  });
  
  </script>
<!--/* <link rel="stylesheet" type="text/css" href="css/validationEngine.jquery.css">
<link rel="stylesheet" type="text/css" href="css/template.css">

<script type="text/javascript" src="js/jquery-1.8.2.min.js"></script>
<script type="text/javascript" src="js/jquery.validationEngine-vi.js"></script>
<script type="text/javascript" src="js/jquery.validationEngine.js"></script>
<script>
        jQuery(document).ready(function(){
            // binds form submission and fields to the validation engine
            jQuery("#formID").validationEngine();
        });
</script>*/-->

</head>
<body>
 <form action="" name="" id="" method="post">
<p>
Date: <input type="text" name="txt_date" id="datepicker">
</p>
<input name="btn_xem" type="button" id="btn_xem" value="Xem">
<?php 
 if(isset($_POST['btn_xem'])){
	 $d=$_POST['txt_date'];
 
 }?>
</form>
 <form action="" method="post" name="form_view" id="form_view">
  <p>
 <div>
<?php echo $_GET['$d'];
 ?>
 </div>
 </p>
 </form>
</body>
</html>